From: umherirrender Date: Mon, 24 Sep 2012 17:16:37 +0000 (+0200) Subject: Do not set mIncludable of SpecialPage direct X-Git-Tag: 1.31.0-rc.0~22293 X-Git-Url: http://git.cyclocoop.org//%22http:/%22.attribut_html%28%24lesurls%5B%24numero%5D%29.%22/%22?a=commitdiff_plain;h=d7bb68bc54c8470b80415d0a8f9e16e800fe4b74;p=lhc%2Fweb%2Fwiklou.git Do not set mIncludable of SpecialPage direct Override isIncludable instead or use the super class, which does it Change-Id: If031fafa1eac82d35cf4af9aa1f84a3393d8008a --- diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index 1089fbbe28..331a0e007b 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -298,14 +298,13 @@ class UsersPager extends AlphabeticPager { /** * @ingroup SpecialPage */ -class SpecialListUsers extends SpecialPage { +class SpecialListUsers extends IncludableSpecialPage { /** * Constructor */ public function __construct() { parent::__construct( 'Listusers' ); - $this->mIncludable = true; } /** diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index 7673305d02..dec123de01 100644 --- a/includes/specials/SpecialWantedpages.php +++ b/includes/specials/SpecialWantedpages.php @@ -30,7 +30,10 @@ class WantedPagesPage extends WantedQueryPage { function __construct( $name = 'Wantedpages' ) { parent::__construct( $name ); - $this->mIncludable = true; + } + + function isIncludable() { + return true; } function execute( $par ) {